import request from '@/utils/request'

// 查询就诊人预约挂号列表
export function listPatientsAppointment(query) {
  return request({
    url: '/manage/patientsAppointment/list',
    method: 'get',
    params: query
  })
}

// 查询就诊人预约挂号详细
export function getPatientsAppointment(id) {
  return request({
    url: '/manage/patientsAppointment/' + id,
    method: 'get'
  })
}

// 新增就诊人预约挂号
export function addPatientsAppointment(data) {
  return request({
    url: '/manage/patientsAppointment',
    method: 'post',
    data: data
  })
}

// 修改就诊人预约挂号
export function updatePatientsAppointment(data) {
  return request({
    url: '/manage/patientsAppointment',
    method: 'put',
    data: data
  })
}

// 删除就诊人预约挂号
export function delPatientsAppointment(id) {
  return request({
    url: '/manage/patientsAppointment/' + id,
    method: 'delete'
  })
}
